package com.aiss.ws.fragment;

import android.content.Context;

import com.aiss.ws.R;
import com.aiss.ws.activity.CourseListActivity_;
import com.aiss.ws.utils.Command;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EFragment;

/**
 * Created by chenqiang on 16/5/8.
 */
@EFragment(R.layout.curse_fragment)
public class CurseFragment extends BaseFragment {


    private Context context;

    @AfterViews
    void init(){
        context = getActivity();
    }

    /**
     * 银行
     */
    @Click(R.id.f2_lin1)
    void onClickll1(){
        CourseListActivity_.intent(this).extra("type", Command.COURSE[0]).start();
    }

    /**
     * 基金
     */
    @Click(R.id.f2_lin2)
    void onClickll2(){
        CourseListActivity_.intent(this).extra("type",Command.COURSE[3]).start();
    }

    /**
     * 证劵
     */
    @Click(R.id.f2_lin3)
    void onClickll3(){
        CourseListActivity_.intent(this).extra("type",Command.COURSE[1]).start();
    }

    /**
     * 期贷
     */
    @Click(R.id.f2_lin4)
    void onClickll4(){
        CourseListActivity_.intent(this).extra("type",Command.COURSE[2]).start();
    }
}
